package net.tavion.angelboot.common.exception;

import lombok.Data;

/**
 * @author : tavion
 * @date : 2019/6/8 11:26
 **/
@Data
public class AngelException extends RuntimeException {
    private String errorCode;
    public AngelException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public AngelException(String errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public AngelException(String errorCode, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }

    public AngelException(String errorCode, String message, Throwable cause,
                          boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.errorCode = errorCode;
    }


}
